
const _ = require('lodash')

const arr = ['jack', 'tom', 'lucy', 'kate']

console.log(_.first(arr))
console.log(_.last(arr))